﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using EquipmentConfig.Class;

namespace EquipmentConfig
{
    static class Program
    {
        public static string keyValue1;
        public static string keyValue2;
        public static string showPassWord = "1";

        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        [Obsolete]
        static void Main()
        {
            //string a1 = Security.EncryptDES("dexi2022", Security.EncryptKey);
            //string a2 = Security.EncryptDES("dexi2022", Security.EncryptKey);
            //string b = Security.DecryptDES(a1, Security.EncryptKey);

            keyValue1 = System.Configuration.ConfigurationSettings.AppSettings["KeyValue1"];
            keyValue2 = System.Configuration.ConfigurationSettings.AppSettings["KeyValue2"];
            showPassWord = System.Configuration.ConfigurationSettings.AppSettings["ShowPw"];
            log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo(AppDomain.CurrentDomain.BaseDirectory + @"\Log.config"));
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ConnectionForm cf = new ConnectionForm();
            cf.StartPosition = FormStartPosition.CenterScreen;
            Application.Run(cf);
        }
    }
}
